<?php

$obj=new mysql($config);
$date=$obj->getAll('goods');


// 公司介绍
$sql="select * from `cate` where `id`=18";
$js=$obj->getOne($sql);


// 公司新闻
$sql="select * from `cate` inner join `news` on `cate`.`id`=`news`.`cid` where `cate`.`id`=25";
$news=$obj->getCondition($sql);
$arr=array();
foreach ($news as $k => $v) {
	$arr[$v['cid']][]=$v;
}


// 行业动态
$sql="select * from `cate` inner join `news` on `cate`.`id`=`news`.`cid` where `cate`.`id`=26";
$hy=$obj->getCondition($sql);
$arr1=array();
foreach ($hy as $k => $v) {
	$arr1[$v['cid']][]=$v;
}


// 户外百科
$sql="select * from `cate` inner join `news` on `cate`.`id`=`news`.`cid` where `cate`.`id`=28";
$bk=$obj->getCondition($sql);
$arr2=array();
foreach ($bk as $k => $v) {
	$arr2[$v['cid']][]=$v;
}


// 联系我们
$sql="select * from `cate` where `id`=30";
$con=$obj->getOne($sql);
require_once VIEW_PATH.'home/layout.html';
